home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 266_01 / pixlib.h < prev    next >
C/C++ Source or Header  |  1990-04-22  |  1KB  |  36 lines

  1. /*
  2.    PIXLIB is a file of compiler-independent routines for use in
  3.    device drivers for pixel oriented devices.
  4.                                                  File: PIXLIB.H
  5. */
  6. #ifndef FILE
  7. #include <stdio.h>
  8. #endif
  9.  
  10. int Bit (int N);
  11. /*  ===             Returns 2 to the N power (i.e., Nth bit on)  */
  12.  
  13. int Dotter (int Type);
  14. /*  ======                 Provides dot patterns for lines */
  15.  
  16. int GetWord (FILE *From);
  17. /*  =======                 reads a binary integer */
  18.  
  19. void HatchHow (int Row, int *Hit, int *Gap);
  20. /*   ======== */
  21.                   /* Provides dot-on params for given row for  */
  22.                   /*  the hatching pattern currently in effect */
  23.  
  24. int InBounds (int X,int Y);
  25. /*  ======== */
  26.  
  27. void SetHatch (int Pattern, int Density);
  28. /*   ========                       Sets the hatching pattern */
  29.  
  30. void SetLine (int Ltype);
  31. /*   =======                         Sets the LineType */
  32.  
  33. int Sign (int X);
  34. /*  ====                            Returns 1 with sign of X  */
  35.  
  36.